def error_result(error_msg:str):
  return {"code": 0, "msg": error_msg}

def success_result(success_msg:str,result):
    return {"code": 1, "msg": success_msg,"data":result}

def is_success(result):
   return result["code"] == 1